Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tooltips-on-safari-bone-age-cropping #106

Merged
merged 4 commits into from
Sep 10, 2024
Merged

Conversation

eatyourpeas
Copy link
Member

Overview

This PR fixes a couple of items

  1. The failure for tooltips of more than one line to render in Safari.
  2. the scoping of the x axis to the data takes into account of the bone age if provided

Code changes

  • CentileChart.tsx and tooltips.ts: tooltips have been refactored to return an array of strings which in turn have \n added. The number of strings in the array is used to override the flyoutHeight prop in the VictoryTooltip to set the tooltip height dynamically. This works now both in chrome and safari.
  • getDomainsAndData sets lowest x and highest x in the domains to the bone age if it is the highest or lowest value. This fixes bone age cropping #102

Documentation changes (done or required as a result of this PR)

Please describe any changes to documentation here.

Related Issues

List any issues related to this PR here.

Mentions

@mentions of the person or team responsible for reviewing proposed changes.

@eatyourpeas eatyourpeas changed the title Eatyourpeas/issue105 tooltips-on-safari-bone-age-cropping Sep 10, 2024
@eatyourpeas eatyourpeas merged commit fd6fd90 into live Sep 10, 2024
2 checks passed
@eatyourpeas eatyourpeas deleted the eatyourpeas/issue105 branch September 10, 2024 07:22
@eatyourpeas eatyourpeas mentioned this pull request Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bone age cropping
1 participant